import sys
from mmengine import Config
from mmdet.registry import MODELS
from mmdet.utils import register_all_modules

register_all_modules()
# cfg = Config.fromfile('./configs/faster_rcnn/faster-rcnn_r50_fpn_1x_coco.py')
cfg = Config.fromfile(sys.argv[1])
model = MODELS.build(cfg.model)
print(model)
